package com.smalls.newvideotwo.bean;

import com.google.gson.JsonArray;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * Created by hs on 2017/12/6.
 */

/***************************
 "epgSeriesTypeID":"",
 "epgSeriesID":"",
 "channelName":"CCTV-2",
 "networkID":"0",
 "historyUrl":"",
 "freq":"363000",
 "epgDes":"",
 "epgImageUrl":[],
 "epgID":"0225adce351547ae933a81ae8a151469",
 "endTime":"20180105151700",
 "historyUrlQueue":[],
 "startTime":"20180105150000",
 "epgSeriesName":"",
 "rank":"0",
 "tsID":"0",
 "serviceID":"1012",
 "epgName":"中国财经报道",
 "epgSeriesTypeName":""
 */
public class LiveProgram implements Serializable {
    private String epgSeriesTypeID;

    public String getEpgSeriesTypeID() {
        return epgSeriesTypeID;
    }

    public void setEpgSeriesTypeID(String epgSeriesTypeID) {
        this.epgSeriesTypeID = epgSeriesTypeID;
    }

    public String getEpgSeriesID() {
        return epgSeriesID;
    }

    public void setEpgSeriesID(String epgSeriesID) {
        this.epgSeriesID = epgSeriesID;
    }

    public String getChannelName() {
        return channelName;
    }

    public void setChannelName(String channelName) {
        this.channelName = channelName;
    }

    public int getNetworkID() {
        if(networkID==null||networkID.equals(""))
            return 0xffff;
        return Integer.valueOf(networkID);
    }

    public void setNetworkID(String networkID) {
        this.networkID = networkID;
    }

    public List<Map<String,String>> getHistoryUrl() {
        return historyUrl;
    }

    public void setHistoryUrl(List<Map<String,String>> historyUrl) {
        this.historyUrl = historyUrl;
    }

    public int getFreq() {
        if(freq==null||freq.equals(""))
            return 0;
        return Integer.valueOf(freq);
    }

    public void setFreq(String freq) {
        this.freq = freq;
    }

    public String getEpgDes() {
        return epgDes;
    }

    public void setEpgDes(String epgDes) {
        this.epgDes = epgDes;
    }

    public String getEpgID() {
        return epgID;
    }

    public void setEpgID(String epgID) {
        this.epgID = epgID;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEpgSeriesName() {
        return epgSeriesName;
    }

    public void setEpgSeriesName(String epgSeriesName) {
        this.epgSeriesName = epgSeriesName;
    }

    public int getRank() {
        if(rank==null||rank.equals(""))
            return 0;
        return Integer.valueOf(rank);
    }

    public void setRank(String rank) {
        this.rank = rank;
    }

    public int getTsID() {
        if(tsID==null||tsID.equals(""))
            return 0xffff;
        return Integer.valueOf(tsID);
    }

    public void setTsID(String tsID) {
        this.tsID = tsID;
    }

    public int getServiceID() {
        if(serviceID==null||serviceID.equals(""))
            return 0xffff;
        return Integer.valueOf(serviceID);
    }

    public void setServiceID(String serviceID) {
        this.serviceID = serviceID;
    }

    public String getEpgName() {
        return epgName;
    }

    public void setEpgName(String epgName) {
        this.epgName = epgName;
    }

    public String getEpgSeriesTypeName() {
        return epgSeriesTypeName;
    }

    public void setEpgSeriesTypeName(String epgSeriesTypeName) {
        this.epgSeriesTypeName = epgSeriesTypeName;
    }

    public JsonArray getEpgImageUrl() {
        return epgImageUrl;
    }

    public void setEpgImageUrl(JsonArray epgImageUrl) {
        this.epgImageUrl = epgImageUrl;
    }

    public JsonArray getHistoryUrlQueue() {
        return historyUrlQueue;
    }

    public void setHistoryUrlQueue(JsonArray historyUrlQueue) {
        this.historyUrlQueue = historyUrlQueue;
    }

    private String epgSeriesID;
    private String channelName;
    private String networkID;
    private List<Map<String,String>> historyUrl;
    private String freq;
    private String epgDes;
    private String epgID;
    private String endTime;
    private String startTime;
    private String epgSeriesName;
    private String rank;
    private String tsID;
    private String serviceID;
    private String epgName;
    private String epgSeriesTypeName;
    private JsonArray epgImageUrl;
    private JsonArray historyUrlQueue;
}
